<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="author" content="计科2411-32-赵红云">
    <title>Document</title>
    <style>
        .c1 {
            border: 1px solid red;
            margin: 300px;
            padding: 20px;
        }

        .c2 {
            background-color: white;
            border: 1px dashed green;
            text-align: center;
            margin: 0 auto;
            line-height: 50px;
            padding: 10px;
            height: 50px;
        }
    </style>
</head>

<body>
    <div class="c1">
        <div class="c2">内容</div>
    </div>
</body>

</html>